package com.ruoyi.transaction.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 成交记录列表对象 t_transaction
 * 
 * @author ruoyi
 * @date 2025-09-10
 */
@Data
public class TTransaction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成交记录ID */
    private Long transactionId;

    /** 所属小区 */
    @Excel(name = "所属小区")
    private Long residentialId;

    /** 面积 */
    @Excel(name = "面积")
    private String transactionArea;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal transactionPrice;

    /** 成交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transactionTime;


    @Excel(name = "所属小区")
    private String residentialName;

    public void setTransactionId(Long transactionId) 
    {
        this.transactionId = transactionId;
    }

    public Long getTransactionId() 
    {
        return transactionId;
    }

    public void setResidentialId(Long residentialId) 
    {
        this.residentialId = residentialId;
    }

    public Long getResidentialId() 
    {
        return residentialId;
    }

    public void setTransactionArea(String transactionArea) 
    {
        this.transactionArea = transactionArea;
    }

    public String getTransactionArea() 
    {
        return transactionArea;
    }

    public void setTransactionPrice(BigDecimal transactionPrice) 
    {
        this.transactionPrice = transactionPrice;
    }

    public BigDecimal getTransactionPrice() 
    {
        return transactionPrice;
    }

    public void setTransactionTime(Date transactionTime) 
    {
        this.transactionTime = transactionTime;
    }

    public Date getTransactionTime() 
    {
        return transactionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("transactionId", getTransactionId())
            .append("residentialId", getResidentialId())
            .append("transactionArea", getTransactionArea())
            .append("transactionPrice", getTransactionPrice())
            .append("transactionTime", getTransactionTime())
            .toString();
    }
}
